Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/ie11-detection

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/ie11-detection

Provides functions and types for detecting if the host environment is IE11

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.1M
decreased by-14.24%
Maintainers
5
Weekly downloads
 
Created

What is @aws-crypto/ie11-detection?

@aws-crypto/ie11-detection is a utility package designed to detect the presence of Internet Explorer 11 (IE11) and its specific cryptographic capabilities. This is particularly useful for applications that need to ensure compatibility with IE11's cryptographic features or need to provide fallbacks for unsupported features.

What are @aws-crypto/ie11-detection's main functionalities?

Detect IE11

This feature allows you to detect if the current browser is Internet Explorer 11. The `isMsWindow` function checks the window object to determine if it matches IE11's characteristics.

const { isMsWindow } = require('@aws-crypto/ie11-detection');

if (isMsWindow(window)) {
  console.log('This is IE11');
} else {
  console.log('This is not IE11');
}

Detect SubtleCrypto

This feature checks if the SubtleCrypto interface is supported in the current browser. SubtleCrypto is a Web Crypto API that provides cryptographic primitives.

const { supportsSubtleCrypto } = require('@aws-crypto/ie11-detection');

if (supportsSubtleCrypto(window)) {
  console.log('SubtleCrypto is supported');
} else {
  console.log('SubtleCrypto is not supported');
}

Detect MsCrypto

This feature checks if the MsCrypto interface is supported in the current browser. MsCrypto is a legacy API specific to Internet Explorer for cryptographic operations.

const { supportsMsCrypto } = require('@aws-crypto/ie11-detection');

if (supportsMsCrypto(window)) {
  console.log('MsCrypto is supported');
} else {
  console.log('MsCrypto is not supported');
}

Other packages similar to @aws-crypto/ie11-detection

FAQs

Package last updated on 22 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc